//
//  UICollectionViewWaterfallCell.m
//  Demo
//
//  Created by Nelson on 12/11/27.
//  Copyright (c) 2012年 Nelson. All rights reserved.
//

#import "CHTCollectionViewWaterfallCell.h"

@implementation CHTCollectionViewWaterfallCell

#pragma mark - Accessors
- (UIImageView *)imageView {
  if (!_imageView) {
    _imageView = [[UIImageView alloc] init];
  }
  return _imageView;
}

#pragma mark - Accessors
- (UILabel *)title {
    if (!_title) {
        _title = [[UILabel alloc] init];
    }
    return _title;
}
#pragma mark - Accessors
-(UILabel *)content {
    if (!_content) {
        _content = [[UILabel alloc] init];
    }
    return _content;
}

- (id)initWithFrame:(CGRect)frame {
  if (self = [super initWithFrame:frame]) {
    self.contentView.backgroundColor = [[UIColor alloc]initWithRed:1.0 green:250.0/255.0 blue:240.0/255.0 alpha:1];
    [self.contentView addSubview:self.imageView];
    self.title.textColor =[[UIColor alloc]initWithRed:61.0/255.0 green:81.0/255.0 blue:171.0/255.0 alpha:1];
//     NSArray* fonts =  [UIFont familyNames];
//      for (NSInteger i=0; i<fonts.count; i++) {
//          NSLog(@"%@",[fonts objectAtIndex:i]);
//      }
    self.title.font =[UIFont systemFontOfSize:[UIFont labelFontSize] weight:UIFontWeightBold];
    [self.contentView addSubview:self.title];
    self.content.font = [UIFont systemFontOfSize:[UIFont labelFontSize] weight:UIFontWeightBlack];
    self.content.numberOfLines = 1;
    [self.contentView addSubview:self.content];
  }
  return self;
}

@end
